<?php
$this->pageTitle = $data->title;
if ( ! empty($data->keyword) ) {
    $this->metaData['keyword'] = $data->keyword;
}
if ( ! empty($data->description) ) {
    $this->metaData['description'] = $data->description;
}
?>

<h1 class="txtColor1">
    <?php echo $data->title ?>
</h1>
<?php echo $data->detailed_content ?>

<?php
$list = $model->getTop($data->type_id, '', $data);
if ( $list ) :
?>
<div class="newsCategoryRowLine"></div>
<h3 class="txtColor1">Các tin khác:</h3>
<ul class="ulNone">
    <?php
    $sPattern = '
        <li>
            <span class="bullet blType2"></span>
            <a href="%s" class="link lnColor5">%s <span class="">(%s)</span></a>
        </li>
    ';
    
    foreach ($list as $item) {
        $link = $this->createUrl('detail', array('page' => $item->id . '-' . $item->title_seo));
        printf($sPattern,
            $link,
            $item->title,
            Yii::app()->format->formatDateType4($item->update_time)
        );
    }
    ?>
</ul>
<?php endif; ?>